import { defineConfig } from 'vitepress'
import { withMermaid } from "vitepress-plugin-mermaid";

// https://vitepress.dev/reference/site-config
export default defineConfig( withMermaid( {
  base: "/test_vp/",
  title: "软件工程",
  description: "A VitePress Site",
  markdown: {
    math: true,  
  },
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '首页', link: '/' },
      { text: '致谢', link: '/致谢' }
    ],

    sidebar: [
      {
        text: '作业要求',
        items: [
          { text: '软件项目计划', link: '/软件项目计划' },
          { text: '需求规格说明书', link: '/需求规格说明书' },
          { text: '概要设计', link: '/概要设计' },
          { text: '详细设计', link: '/详细设计' },
          { text: '软件测试', link: '/软件测试' },
          { text: '软件项目管理', link: '/软件项目管理' },
        ]
      },

      { text: '选题', link: '/选题' },
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
}))
